//
//  PersonInfo.swift
//  vmes
//
//  Created by 志鹏 翟 on 2021/11/17.
//

import Foundation

struct LoginInfo: Codable {
    let code : Int?
    let data : Data?
    let msg : String?
}

struct Data : Codable {
    let access_token : String?
    let expiresIn : Int?
    let userInfo : UserInfo?
}

struct UserInfo : Codable {
    let company : Company?
    let nickName : String?
    let phoneNumber : String?
    let post : Post?
    let roles : [Role]?
    let userId : String?
    let username : String?
    let workshops : [Workshop]?
}

struct Workshop : Codable {
    let workshopId : String?
    let workshopName : String?
    let workshopType : String?
}

struct Company : Codable {
    let companyId : String?
    let companyName : String?
}

struct Role : Codable {
    let roleId : Int?
    let roleKey : String?
    let roleName : String?
}

struct Post : Codable {
    let postCode : String?
    let postName : String?
}
